{php $fwlxss = dr_string2array($fwlxs);}
{php $chuzubiao = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_chuzu')->where('cid', $id)->where('leixing', 1)->where('uid', $member.uid)->get()->getRowArray();}
<div class="d-shang-15">
	<div class="d-kuan d-beijingyanse-hong d-yuanjiao-10 ">
		<div class="d-neikuang-10">
			<div class="col-md-6">
				<div class="d-jiacu" style="color: #ef611a;">房屋资料</div>
				<div>
					<span class="d-zitiyanse-hui">出租价格</span>
					<span class="d-wenzi-26 d-shang-10" style="color: #ff7171;">{$chuzujiage}</span>
					<span class="d-zitiyanse-hui">元 / 月</span> 
					
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">房屋装修</span>
					<span class="d-zuo-10">
						{if $fwlxss['zhuang'] == '1'}
						精装
						{elseif $fwlxss['zhuang'] == '2'}
						空房
						{elseif $fwlxss['zhuang'] == '3'}
						豪华
						{/if}
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">房屋类型</span>
					<span class="d-zuo-10">
						{if $fwlxss['shi'] == '1'}
						1
						{elseif $fwlxss['shi'] == '2'}
						2
						{elseif $fwlxss['shi'] == '3'}
						3
						{elseif $fwlxss['shi'] == '4'}
						4
						{elseif $fwlxss['shi'] == '5'}
						5
						{elseif $fwlxss['shi'] == '6'}
						6
						{/if}
						室
					</span>
					<span class="">
						{if $fwlxss['ting'] == '1'}
						1
						{elseif $fwlxss['ting'] == '2'}
						2
						{elseif $fwlxss['ting'] == '3'}
						3
						{elseif $fwlxss['ting'] == '4'}
						4
						{elseif $fwlxss['ting'] == '5'}
						5
						{elseif $fwlxss['ting'] == '6'}
						6
						{elseif $fwlxss['ting'] == '7'}
						0
						{/if} 厅
					</span>
					<span class="">
						{if $fwlxss['wei'] == '1'}
						1
						{elseif $fwlxss['wei'] == '2'}
						2
						{elseif $fwlxss['wei'] == '3'}
						3
						{elseif $fwlxss['wei'] == '4'}
						4
						{elseif $fwlxss['wei'] == '5'}
						5
						{elseif $fwlxss['wei'] == '6'}
						6
						{elseif $fwlxss['wei'] == '7'}
						0
						{/if}  卫
					</span>
					<span class="">
						( {$fwlxss['ping']} 平方 ) 
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">租赁方式</span>
					<span class="d-zuo-10">
						{if $chuzufangshi == '1'}
						整租
						{elseif $chuzufangshi == '2'}
						合租
						{/if}
					</span>
					<span class="d-zitiyanse-hui">
						( {if $chuzuyajin == '1'}
						押一付一
						{elseif $chuzuyajin == '2'}
						押二付一
						{elseif $chuzuyajin == '3'}
						押三付一
						{/if} )
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">朝向楼层</span>
					
					<span class="d-zuo-10">
					{if $fwlxss['shi'] == '1'}东
					{elseif $fwlxss['shi'] == '2'}南
					{elseif $fwlxss['shi'] == '3'}西
					{elseif $fwlxss['shi'] == '4'}北
					{/if}
					</span>
					<span class="d-zuo-10">{$fwlxss['jilou']} 层</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">所在小区</span>
					<span class="d-zuo-10">{$fwlxss['mingcheng']}</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">所属区域</span>
					<span class="d-zuo-10">
					{dr_linkage('address', $suoshuquyu, 1, 'name')}-
					{dr_linkage('address', $suoshuquyu, 2, 'name')}-
					{dr_linkage('address', $suoshuquyu, 3, 'name')}
					</span>
				</div>
				<div class="d-shang-10">
					<span class="d-zitiyanse-hui">详细地址</span>
					<span class="d-zuo-10">{$xiangxidizhi}</span>
				</div>
				
				<div class="d-clear"></div>
			</div>
			<div class="col-md-6 ">
				<div class="d-kuan d-shang-20 d-kuan-160 d-beijing-fenhong d-yuanjiao-10 d-wenzi-juzhong d-zitiyanse-bai d-kuan-juzhong">
					{if $member}
					<a id="d-chuzu-lianxi" class="d-hanggao-40" style="" onclick="javascript:d_chuzu_lianxi();">
						<i class="fa fa-whatsapp"></i> 点击查看
					</a>
						{if $chuzubiao}
							<a id="d-chuzu-lianxi-yc" class=" d-hanggao-40" style="" >
								<i class="fa fa-whatsapp"></i> 已出租啦 
							</a>
						{else}
							<a id="d-chuzu-lianxi-yc" class=" d-hanggao-40" style="" onclick="javascript:d_chuzu_lianxi();">
								<i class="fa fa-whatsapp"></i>  {$chuzulianxi} 
							</a>
						{/if}
					{else}
					<a class="d-hanggao-40" style="" href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
						<i class="fa fa-whatsapp"></i> 登录后查看
					</a>
					{/if}
				</div>
				
			</div>
		</div>
			<div class="d-clear"></div>
			
		<!---->
		<div class="d-shang-15">
			<div class="d-yuanjiao-10-10-xia d-beijing-hongse-1">
				<div class="d-jindu-biaoti-hongse-1" >出租进度</div>
					<div class="d-jindu-kuang">
						<div class="d-jindu-neikuang">
							<div class="d-jindu-kuan100">
								<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
									<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
								</div>
							</div>
				            <div class="d-jindu-ziti {if $chuzubiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
								出租中...
							</div>
							<div class="d-jindu-riqi ">
								{dr_date($_inputtime, 'Y-m-d')}
							</div>
						</div>
				        <div class="d-jindu-neikuang d-quxian-0">
							<div class="d-jindu-kuan100">
									<div class="d-jindu-jtiao-hongse d-jindu-right d-jindu-hongse-1 {if !$chuzubiao}d-jindu-guodu-hongse{/if}">
									</div>
									{if $chuzubiao}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zu.png" class="d-beijing-baise">
										</div>
									{else}
										<div class="d-jindu-tu d-jindu-tu-weizhi d-yuanjiao-10">
											<img src="{HOME_THEME_PATH}web/img/zushijian.png" class="d-beijing-baise">
										</div>
									{/if}
							</div>
							<a id="d_bug_paiqi_{$id}" data-id="{$id}" data-quanid="{$index.id}" class="d-chuzu-jindu">
								<div class="d-jindu-ziti {if $chuzubiao}d-jiacu d-beijing-wenzi-hongse-1{/if}">
									已租啦
								</div>
							</a>
							<div class="d-jindu-riqi">
								{dr_date($chuzubiao['inputtime'], 'Y-m-d')}
							</div>
						</div>
						
						
					</div>
				</div>
			
		</div>
		<!---->
	</div>
	
	<div class="d-kuan d-shang-15">
		<div class="d-kuan d-shang-15 d-wenzi-18 d-xia-15 d-wenzi-juzhong d-jiacu">房屋配套</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(1, (array)$fangzipeitao)}1{else}0{/if}.png" class="" width="50" height="50">
			<div>床</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(2, (array)$fangzipeitao)}2{else}0{/if}.png" class="" width="50" height="50">
			<div>衣柜</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(3, (array)$fangzipeitao)}3{else}0{/if}.png" class="" width="50" height="50">
			<div>沙发</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(4, (array)$fangzipeitao)}4{else}0{/if}.png" class="" width="50" height="50">
			<div>电视</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(5, (array)$fangzipeitao)}5{else}0{/if}.png" class="" width="50" height="50">
			<div>冰箱</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(6, (array)$fangzipeitao)}6{else}0{/if}.png" class="" width="50" height="50">
			<div>洗衣机</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(7, (array)$fangzipeitao)}7{else}0{/if}.png" class="" width="50" height="50">
			<div>空调</div>
		</div>
		
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(8, (array)$fangzipeitao)}8{else}0{/if}.png" class="" width="50" height="50">
			<div>热水器</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(9, (array)$fangzipeitao)}9{else}0{/if}.png" class="" width="50" height="50">
			<div>宽带</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(10, (array)$fangzipeitao)}10{else}0{/if}.png" class="" width="50" height="50">
			<div>暖气</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(11, (array)$fangzipeitao)}11{else}0{/if}.png" class="" width="50" height="50">
			<div>燃气灶</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(12, (array)$fangzipeitao)}12{else}0{/if}.png" class="" width="50" height="50">
			<div>阳台</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(13, (array)$fangzipeitao)}13{else}0{/if}.png" class="" width="50" height="50">
			<div>卫生间</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(14, (array)$fangzipeitao)}14{else}0{/if}.png" class="" width="50" height="50">
			<div>智能门</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(15, (array)$fangzipeitao)}15{else}0{/if}.png" class="" width="50" height="50">
			<div>油烟机</div>
		</div>
		<div class="d-kuan-20 d-wenzi-juzhong d-xia-20">
			<img src="{HOME_THEME_PATH}web/img/peitao{if dr_in_array(16, (array)$fangzipeitao)}16{else}0{/if}.png" class="" width="50" height="50">
			<div>可做饭</div>
		</div>

	</div>
	<div class="d-clear"></div>
	<div class="d-kuan">
		<div>
			<div class="row d-shang-15">
				<div class="" id="tuzhanshizu">
					{loop $chuzutu $i $c}
					<div class="col-md-4 col-xs-4 liebiaotu-zhong d-yuanjiao-10 xia-20 a">
						<img src="{dr_get_file($c.file)}" class="d-yuanjiao-10"/>
					</div>
					{/loop}
				</div>
			</div>
		</div>
	</div>
</div>

<style>
.d-beijingyanse-hong {
	background-color: #fff6f6;
	border-radius: 10px !important;
}
.xia-20 {
	margin-bottom: 20px;
	
}
</style>


<script>
$('#d-chuzu-lianxi-yc').hide();
function d_chuzu_lianxi() {
	if ($('#d-chuzu-lianxi-yc').is(':hidden')) {
		$('#d-chuzu-lianxi-yc').show();
		$('#d-chuzu-lianxi').hide();
	} else {
		$('#d-chuzu-lianxi-yc').hide();
		$('#d-chuzu-lianxi').show();
		//window.location.href = 'tel:{$chuzulianxi}';
	}
}
{if $uid == $member.uid}
	 // 出租
	 $(".d-chuzu-jindu").click(function(){
		 var id = $(this).data("id");
		 var quanid = $(this).data("quanid");
		 $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=chuzu&id="+id+"&quanid="+quanid, function(data){
			 dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
			 if (data.msg.value=="已租啦") {
				window.location.reload();
			}else{
				window.location.reload();
			}
		 }, 'json');
	 });
{/if}
</script>